<html><head><title>DrawAlphaImage</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">DrawAlphaImage()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>DrawAlphaImage</b></font>(ImageID, x, y [, ConstAlpha])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Draws an image to the current drawing output using alpha-blending. 
The filling mode is determined by <a href="drawingmode.html">DrawingMode()</a>. 
The current output is set with <a href="startdrawing.html">StartDrawing()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>ImageID</i></td>
<td width="90%"> 
The ID of the image to draw. This value can be obtained 
using the <a href="../image/imageid.html">ImageID()</a> function from the image library. 

</td></tr>
<tr><td><i>x, y</i></td>
<td> 
The position of the top/left corner of the image in the drawing output. 

</td></tr>
<tr><td><i>ConstAlpha (optional)</i></td>
<td> 
The amount of extra transparency to apply to the image when drawing. 
The value can range from 0 (fully transparent) to 255 (fully opaque). Even images 
that have no alpha channel themselves can be drawn with transparency this way. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

This command works on all drawing outputs, even those that do not support the alpha-blending 
flags in <a href="drawingmode.html">DrawingMode()</a>. 
The image will be drawn at its original size. 
<a href="../image/resizeimage.html">ResizeImage()</a> can be used to change the size of an image. 

<br>
<br>
This command cannot be used to draw Icons (loaded from .ico files). 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="drawimage.html">DrawImage()</a>, <a href="../image/imageid.html">ImageID()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=customgradient.html>CustomGradient()</a> - <a href=index.html>2DDrawing Index</a> - <a href=drawimage.html>DrawImage()</a> ->

</body></html>